﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Course.aspx.cs" Inherits="sysadmin_CourseManager_Course" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>课程管理</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script type="text/javascript" language="javascript">
        function ShowNo()                        //隐藏两个层
        {
            document.getElementById("doing").style.display="none";
            document.getElementById("divLogin").style.display="none";
        }
        function $(id)         
        {
            return (document.getElementById) ? document.getElementById(id) : document.all[id] ;
        }
        function showFloat()                    //根据屏幕的大小显示两个层
        {
            var range = getRange();
            $('doing').style.width = range.width + "px";
            $('doing').style.height = range.height + "px";
            $('doing').style.display = "block";
            document.getElementById("divLogin").style.display="";
        }
        function getRange()                      //得到屏幕的大小
        {
              var top     = document.body.scrollTop;
              var left    = document.body.scrollLeft;
              var height  = document.body.clientHeight;
              var width   = document.body.clientWidth;

              if (top==0 && left==0 && height==0 && width==0) 
              {
                top     = document.documentElement.scrollTop;
                left    = document.documentElement.scrollLeft;
                height  = document.documentElement.clientHeight;
                width   = document.documentElement.clientWidth;
              }
              return  {top:top  ,left:left ,height:height ,width:width } ;
        } 

    </script>

</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lbl_InfoTitle" runat="server" Text=""></asp:Label></td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
            <tr>
                <td class="left">
                    <!--专业树-->
                    <asp:TreeView ID="tv_Catalog" runat="server" ImageSet="Inbox" OnSelectedNodeChanged="tv_Catalog_SelectedNodeChanged">
                        <ParentNodeStyle Font-Bold="False" />
                        <HoverNodeStyle Font-Underline="True" />
                        <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
                        <NodeStyle Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" HorizontalPadding="5px"
                            NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>
                    <!-- end 专业树-->
                </td>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="btnbg">
                        <tr>
                            <td>
                                <!--------提高性能 by windbell2--->

                                <asp:CheckBox ID="chkAll" runat="server" Text="全选/取消" OnCheckedChanged="chkAll_CheckedChanged"
                                    AutoPostBack="True" ValidationGroup="gs" />
                                <asp:CheckBox ID="chkCancel" runat="server" Text="取消" OnCheckedChanged="chkCancel_CheckedChanged"
                                    AutoPostBack="True" ValidationGroup="gs" />
                                <asp:Button ID="btnLock" runat="server" Text="" CssClass="inputBotton2" OnClick="btnLock_Click" />
                                <asp:Button ID="btnAuditing" runat="server" Text="" CssClass="inputBotton2" OnClick="btnAuditing_Click" />

                                <asp:Button ID="btnDel" runat="server" Text="" CssClass="inputBotton2" OnClick="btnDel_Click" />
                                <asp:Button ID="btn_Add" runat="server" Text="" CssClass="inputBotton2" OnClick="btn_Add_Click" />
                                <asp:Button ID="btn_AddFKCourse" runat="server" Text="" CssClass="inputBotton2" OnClick="btn_AddFKCourse_Click" /></td>
                            <td>
                                <asp:TextBox ID="txt_SearchKey" runat="server"></asp:TextBox>
                                <asp:Button ID="btn_SortSearch" runat="server" Text="搜索" CssClass="inputBotton2" OnClick="btn_SortSearch_Click" />&nbsp;
                                <a href="javascript:void(0)" onclick="showFloat()">
                                    <%=GetLanageValueByKey("btn_LevelSearch", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                </a>&nbsp;

                            </td>
                        </tr>
                    </table>
                    <!--end 操作项-->
                    <asp:Repeater ID="rptCourse" runat="server" OnItemCommand="rptCourse_ItemCommand" OnItemDataBound="rpt_ItemDataBound">
                        <HeaderTemplate>
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="mainList">
                                <tr>
                                    <th class="height" style="width: 30px;">
                                        &nbsp;</th>
                                    <th class="height">
                                        <%=GetLanageValueByKey("lbl_Course_Name", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                        &nbsp;
                                        <!--课程名称-->
                                    </th>
                                    <th class="height">
                                        <%=GetLanageValueByKey("lbl_SetDepartmentAttributes_SpecialtyName", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                        &nbsp;
                                        <!--专业名称lbl_SetDepartmentAttributes_SpecialtyName-->
                                    </th>
                                    <th class="height">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandName="orderby" CommandArgument="tc.CourseMostlyTeacherName">
                                        <%=GetLanageValueByKey("lbl_AddCourseInfo_TeacherName", PowerCreator.LMS.Language.LanagetItemType.Page)%>&nbsp;
                                        <!--主讲教师--></asp:LinkButton>
                                    </th>
                                    <th class="height">
                                        <asp:LinkButton ID="lnkbtn_orderbynum" runat="server" CommandName="orderby" CommandArgument="tc.CourseResourceNum ">
                                        <%=GetLanageValueByKey("SystemDefoult_desc24", PowerCreator.LMS.Language.LanagetItemType.Page)%>&nbsp;
                                        <!--资源总数--></asp:LinkButton>
                                    </th>
                                    <th class="height">
                                        <asp:LinkButton ID="lnkbtn_orderbystate" runat="server" CommandName="orderby" CommandArgument="tc.CourseState ">
                                        <%=GetLanageValueByKey("lbl_CourseResource_CourseState", PowerCreator.LMS.Language.LanagetItemType.Page)%>&nbsp;
                                        <!--课程状态--></asp:LinkButton></th>
                                    <th class="height">
                                        <%=GetLanageValueByKey("ManagerRole_gv_c4", PowerCreator.LMS.Language.LanagetItemType.Page)%>
                                        &nbsp;
                                        <!-- 操作-->
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="chkSelect" runat="server" />
                                    <asp:Label ID="lblid" runat="server" Text='<%#Eval("CatalogcouID")%>' Visible="False"></asp:Label>
                                    <asp:Label ID="lbl_courseid" runat="server" Text='<%#Eval("Course_Id")%>' Visible="False"></asp:Label>
                                </td>
                                <td>
                                    <%#Eval("CourseName")%>
                                    &nbsp;
                                </td>
                                <td>
                                    <%#Eval("CatalogName")%>
                                    &nbsp;
                                </td>
                                <td>
                                    <%#Eval("CourseMostlyTeacherName")%>
                                    &nbsp;
                                </td>
                                <td>
                                    <%#Eval("CourseResourceNum")%>
                                    &nbsp;
                                </td>
                                <td>
                                    <%#opCourse.GetCourseStateByData(int.Parse(Eval("CourseState").ToString()), GetLanageValueByKey("State_Msg2", PowerCreator.LMS.Language.LanagetItemType.Page), GetLanageValueByKey("AddCourseInfo_db_d2", PowerCreator.LMS.Language.LanagetItemType.Page))%>
                                    &nbsp;
                                </td>
                                <td>
                                    <asp:LinkButton ID="lnkbtn_editor" runat="server" CommandName="leditor" CommandArgument='<%#Eval("Course_Id")%>'> <%=GetLanageValueByKey("ManagerRole_gv_lnk_o1", PowerCreator.LMS.Language.LanagetItemType.Page)%>&nbsp;
                        <!--编辑--></asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="lnkbtn_del" runat="server" CommandName="ldel" CommandArgument='<%#Eval("CatalogcouID")%>' ><%=GetLanageValueByKey("ManagerRole_gv_lnk_o2", PowerCreator.LMS.Language.LanagetItemType.Page)%>&nbsp;
                            <!-- 删除--></asp:LinkButton>
                                    |
                                    <asp:LinkButton ID="lnkbtn_check" runat="server" CommandName="lcheck" CommandArgument='<%#Eval("Course_Id")%>'><%=GetLanageValueByKey("TeacherManager_gv_c1", PowerCreator.LMS.Language.LanagetItemType.Page)%>&nbsp;
                        <!--审核--></asp:LinkButton>
                        |
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="lscore" CommandArgument='<%#Eval("Course_Id")%>'>评价管理&nbsp;
                        <!--评价管理--></asp:LinkButton>
                        |
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandName="lrule" CommandArgument='<%#Eval("Course_Id")%>'>考核规则</asp:LinkButton>
                                    <asp:Label ID="lbl_msg" runat="server" Text="" ForeColor="Red"></asp:Label>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td align="center">
                                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                                    ShowCustomInfoSection="Left" Width="100%" meta:resourcekey="AspNetPager1" Style="font-size: 14px"
                                    InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                                    FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                                </webdiyer:AspNetPager>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div id="doing" style="filter: alpha(opacity=30); -moz-opacity: 0.3; opacity: 0.3;
            background-color: #000; width: 100%; height: 100%; z-index: 1000; position: absolute;
            left: 0; top: 0; display: none; overflow: hidden;">
        </div>
        <div id="divLogin" style="border: solid 10px #898989; background: #fff; padding: 10px;
            width: 780px; z-index: 1001; position: absolute; display: none; top: 50%; left: 50%;
            margin: -200px 0 0 -400px;">
            <div style="padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableList2">
                    <tr>
                        <th class="tree-bottom-bg1">
                            <asp:Label ID="lbl_Search" runat="server" Text=""></asp:Label></th>
                    </tr>
                    <tr>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <th>
                                        <asp:Label ID="lbl_CourseName" runat="server" Text=""></asp:Label></th>
                                    <td>
                                        <asp:TextBox ID="txt_CourseName" runat="server"></asp:TextBox></td>
                                    <th>
                                        <asp:Label ID="lbl_CourseMostlyTeacherName" runat="server" Text=""></asp:Label></th>
                                    <td>
                                        <asp:TextBox ID="txt_CourseMostlyTeacherName" runat="server"></asp:TextBox></td>
                                </tr>
                                <tr>
                                    <th>
                                        <asp:Label ID="lbl_Catalog" runat="server" Text=""></asp:Label></th>
                                    <td>
                                        <asp:DropDownList ID="ddl_Catalog" runat="server">
                                        </asp:DropDownList></td>
                                    <th>
                                        <asp:Label ID="lbl_CourseType" runat="server" Text=""></asp:Label></th>
                                    <td>
                                        <asp:DropDownList ID="ddl_CourseType" runat="server">
                                        </asp:DropDownList></td>
                                </tr>
                                <tr>
                                    <td colspan="5" class="tree-bottom-bg1">
                                        <asp:Button ID="btn_Search" runat="server" Text="" CssClass="inputBotton2" OnClick="btn_Search_Click" />&nbsp;
                                        <input id="btn_colse" type="button" value='<%=GetLanageValueByKey("btn_Colse", PowerCreator.LMS.Language.LanagetItemType.Page)%>'
                                            class="inputBotton2" onclick="ShowNo()" /></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
